//
//  UILabel+HS_Public.m
//  HolyShit
//
//  Created by Robin on 2016/10/14.
//  Copyright © 2016年 linbei. All rights reserved.
//

#import "UILabel+HS_Public.h"

@implementation UILabel (HS_Public)

+ (UILabel *)labelWithFont:(UIFont *)font color:(UIColor *)color
{
    return [self labelWithFrame:CGRectZero font:font color:color text:nil];
}

+ (UILabel *)labelWithFrame:(CGRect)frame font:(UIFont *)font color:(UIColor *)color
{
    return [self labelWithFrame:frame font:font color:color text:nil];
}

+ (UILabel *)labelWithFrame:(CGRect)frame font:(UIFont *)font color:(UIColor *)color text:(NSString *)text
{
    UILabel *lb = [[UILabel alloc] initWithFrame:frame];
    lb.font = font;
    lb.textColor = color;
    if ([text isNotBlank]) {
        lb.text = text;
    }
    return lb;
}

@end
